<small>
<style>
  
 
</style>
<div class="row">
  <div class="span3 bs-docs-sidebar "> <*include file="<*$controller*>/location.tpl"*></div> 

    
  <div class="span8">  
  
   <div class="form-actions">
      <button type="button" class="btn btn-primary"    onclick="window.location='/<*$controller*>/addproduct'" >发布产品</button> 
    </div>
  
  
    <table class="table table-condensed table-bordered table-hover span9" >
     <tr class="success">  
           <td><strong>编号</strong></td>
           <td><strong>名称</strong></td>
           <td><strong>产品类型</strong></td>  
           <td><strong>价格(元)</strong></td>   
           <td><strong>开始时间</strong></td> 
           <td><strong>结束时间</strong></td>
           <td><strong>备注</strong></td>
      </tr>
      <*foreach from=$result item=item key=key name=animals*> 
              <tr> 
                <td><strong><*$smarty.foreach.animals.iteration*></strong></td>
                <td><strong><*$item.productname*></strong></td>
                <td><strong><*$item.producttype*></strong></td> 
                <td><strong><*$item.productprice*></strong></td>  
                <td><strong> <*$item.starttime|date_format:'%Y-%m-%d %H:%M:%S'*></strong></td>
                <td><strong><*$item.endtime*></strong></td> 
                <td><strong><*$item.productdetail*></strong></td>  
              </tr> 
      <*/foreach*>
    </table> 
  </div>
 <script type="text/javascript"> 
  function useddetail(id){
	  
	 window.location='/<*$controller*>/useddetail/id/'+id;   
	  
	  }  
	  
 </script> 
</div>

</small> 